<?$this->extend("layout/preview") ?>
<div id="container">
	<div id="contact" class="corner">
		<h3> Client </h3>
		<?=$contact?> <br/>
		<?=$contact->adresse_rue?> <br/>
		<?=$contact->adresse_cp?> <?=$contact->adresse_ville?> <br/>
	</div>
	<div id="infos_devis" class="corner">
		<h3> Infos devis </h3>
		<b> Date : </b><?=date("d-m-Y",strtotime($devis->date))?> <br/>
		<b> Echéance : </b><?=date("d-m-Y",strtotime($devis->echeance))?> <br/>
		<b> Référence commande : </b> <?=$devis->ref_commande?> <br/>
	</div>
	<div id="lines" class="corner">
		<h3> Corps du devis </h3>
		<table width="100%">
			<tr>
				<td class="th"> Qté </td>
				<td class="th"> Désignation </td>
				<td class="th"> Montant HT </td>
			</tr>
		<?foreach($lines as $line){?>
			<tr><td align="center" style="font-size:12px;"><?=$line->qte?></td><td style="font-size:12px;"><?=$line->description?></td><td style="font-size:12px;"><?=$line->montant_ht?> &euro;</td></tr>
		<?}?>
		<tr>
			<td></td><td align="right" style="padding-right:10px;font-size:12px;"> Total HT </td><td style="font-size:12px;"><?=$devis->montant_ht?> &euro;</td>
		</tr>
		<tr>
			<td></td><td align="right" style="padding-right:10px;font-size:12px;"> Total TTC </td><td style="font-size:12px;"><?=$devis->montant_ttc?> &euro;</td>
		</tr>
		</table>
	</div>
</div>